module.exports = {
    testURL: 'http://localhost:8000',
    preset: 'jest-puppeteer',
    extraSetupFiles: ['./tests/setupTests.js'],
    testEnvironment: 'node',
    globals: {
        localStorage: null,
    },
    // collectCoverage: true,
    // collectCoverageFrom: [
    //     '**/*.{js,jsx}',
    //     '!**/node_modules/**',
    //     '!./**.**',
    //     '!**/dist/**',
    //     '!**/mock/**',
    // ],
    reporters: [
        'default',
        [
            'jest-html-reporters',
            {
                pageTitle: 'jest 测试结果',
                publicPath: './jestReport',
                filename: 'jestReport.html',
                expand: true,
                hideIcon: true,
                logoImgPath: './',
            },
        ],
    ],
};
